//
//  EPOSCashBox.m
//  BCGenieEffect
//
//  Created by Ios Entity Generator on 2014-03-06 17:01:47
//  Copyright (c) 2014年 Bartosz Ciechanowski. All rights reserved.
//

#import "EPOSCashBox.h"

@implementation EPOSCashBox

+(id) getEPOSCashBoxFromDictionary :(NSDictionary *) dic {
    EPOSCashBox * cashBox = [[EPOSCashBox alloc]init] ;
    cashBox.Result = [dic objectForKey:@"Result"];
    cashBox.ErrMessage = [dic objectForKey:@"ErrMessage"];
    cashBox.ErrSysTrackMessage = [dic objectForKey:@"ErrSysTrackMessage"];
    cashBox.ErrSysMessage = [dic objectForKey:@"ErrSysMessage"];
    cashBox.Message = [dic objectForKey:@"Message"];
    cashBox.CashierID = [dic objectForKey:@"CashierID"];
    cashBox.CashCode = [dic objectForKey:@"CashCode"];
    cashBox.CashierTeamID = [dic objectForKey:@"CashierTeamID"];
    return cashBox ;
}

+(NSMutableDictionary *) getDictionaryFromEPOSCashBox :(EPOSCashBox* ) cashBox {
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    [dic setObject:cashBox.Result forKey:@"Result"];
    [dic setObject:cashBox.ErrMessage forKey:@"ErrMessage"];
    [dic setObject:cashBox.ErrSysTrackMessage forKey:@"ErrSysTrackMessage"];
    [dic setObject:cashBox.ErrSysMessage forKey:@"ErrSysMessage"];
    [dic setObject:cashBox.Message forKey:@"Message"];
    [dic setObject:cashBox.CashierID forKey:@"CashierID"];
    [dic setObject:cashBox.CashCode forKey:@"CashCode"];
    [dic setObject:cashBox.CashierTeamID forKey:@"CashierTeamID"];
    return dic ;
}

@end